import App from './App'
import { dateUtil } from '@/static/utils/dateUtil.js'
import { urlConfig } from '@/static/utils/urlConfig.js'

// #ifndef VUE3
import Vue from 'vue'
import uView from "uview-ui";
// 调用store状态管理
import store from '@/store/index.js'

/**
 * 推送弹框
 */
import appPush from '@/plugins/APPPush/index.js'
Vue.use(appPush)

Vue.use(uView);
uni.$u.config.unit = 'rpx'
Vue.config.productionTip = false
App.mpType = 'app'
//自定义工具类
Vue.prototype.dateUtil = dateUtil;
Vue.prototype.urlConfig = urlConfig;
const app = new Vue({
	...App,
	store
})
app.$mount()

// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}

// #endif
